import React from 'react';

import { Banner, Container } from './index';

const wrapStyle = {
    overflow: 'auto',
    height: 'calc(100vh - 56px)'
};

export default function PageWrap({ children, bannerText }) {
    return (
        <div style={wrapStyle}>
            <Banner text={bannerText} />
            <Container>{children}</Container>
        </div>
    );
}
